package com.jianyun.jyzs.model.imdoel;


import com.jianyun.jyzs.bean.CrmCalendarCountBean;
import com.jianyun.jyzs.bean.CrmCalendarListBean;

import java.util.List;

/**
 * Created by yangshijun on 2018/12/12.
 */

public interface ICrmCaledarModel {

    void getCrmMonthCount(String enterpriseCode,String userId,String type,
                          String year_month,
                          OnGetMonthCountLisenter onGetMonthCountLisenter);

    void getCrmDateList(String enterpriseCode,String userId,String type,
                        String workdate,
                        OnGetCrmDateLisenter onGetCrmDateLisenter);


    interface OnGetMonthCountLisenter{
        void onSuccess(List<CrmCalendarCountBean.DataList> data);
        void onFailed();
        void onException(String msg);
    }

    interface OnGetCrmDateLisenter{
        void onSuccess(List<CrmCalendarListBean.ListBean> data);
        void onFailed();
        void onException(String msg);
    }
}
